﻿@using Abc.Core;
@using Abc.Core.Entities;
@using Abc.Application;
@model Abc.Application.HtAdminServices.HtLocalizationTranslationOut;


@{
	ViewData["Title"] = "全球化和本地化 翻译";
}



<section class="panel panel-padding">
	<div class="layui-tab layui-tab-brief" lay-filter="TabBrief_LocalizationTranslation">

		<form class="layui-form" action="" id="from_LocalizationTranslation">
			<input type="hidden" asp-for="Id" />

			<table class="layui-table">
				<tbody>
					<tr>
						<td width="200px;">全球化和本地化Id</td>
						<td>

							<input asp-for="LocalizationId" lay-verify="LocalizationId" autocomplete="off" placeholder="请输入全球化和本地化Id" class="layui-input">
						</td>
					</tr>
					<tr>
						<td width="200px;">区域码</td>
						<td>

							<input asp-for="Culture" lay-verify="Culture" autocomplete="off" placeholder="请输入区域码" class="layui-input">
						</td>
					</tr>
					<tr>
						<td width="200px;">翻译</td>
						<td>

							<input asp-for="Translation" lay-verify="Translation" autocomplete="off" placeholder="请输入翻译" class="layui-input">
						</td>
					</tr>
					<tr>
						<td width="200px;">备注</td>
						<td>

							<textarea class="layui-textarea" asp-for="Remark" lay-verify="required|remark"></textarea>
						</td>
					</tr>

					@*
					<textarea placeholder="请输入内容" class="layui-textarea"></textarea>
					<input type="radio" name="sex" value="男" title="男" checked="">
					<input type="radio" name="sex" value="女" title="女">
					<input type="radio" name="sex" value="禁" title="禁用" disabled="">
					*@
					<tr>
						<td></td>
						<td>
							<div class="layui-btn submitbtn" lay-submit lay-filter="submit">立即提交</div>
							<div class="layui-btn layui-btn-danger closewindow">关闭窗口</div>
							<div class="layui-btn layui-btn-danger refreshwindow">重新加载</div>
						</td>
					</tr>

				</tbody>
			</table>



		</form>
	</div>
</section>


@section Scripts{
	<script>
		layui.define(['element', 'jquery', 'form'], function () {
			let $ = layui.jquery;
			let form = layui.form;
			let element = layui.element;

			abc.infoInit();
			//提交
			form.on('submit(submit)', function (obj) {
				//obj.field.IsEnable=$('#IsEnable').is(':checked');
				//obj.field.Remark = Remark.getContent();
				abc.post({
					url: '@(Url.Action("Edit", new { area = "HtAdmin" }))', data: obj.field
					//,submitbtn:'submitbtn' //提交的按钮
					//,isAutoEnableBtn:false //不自动启用按钮
					//,IsSuccessCloseWindow:false //不关闭
				});

				return false;
			});


		});
	</script>
}

